﻿#ifndef RELEASENOTESDATAMODELTYPEDEF_H
#define RELEASENOTESDATAMODELTYPEDEF_H

#include <QList>
#include <QString>

struct NoteModel {
    QString title;  // 标题
    int version = 0;  // 版本
    QString date;  // 释放日期
    QList<QString>  changes;  // 变更点

    bool operator==(const NoteModel& other) const {
        return version == other.version &&
            date == other.date &&
            changes == other.changes;
    }

    bool operator!=(const NoteModel& other) const {
        return !(*this == other);
    }
};


struct ReleaseNotesModel {
    QList<NoteModel> notes;

    bool operator==(const ReleaseNotesModel& other) const {
        return notes == other.notes;
    }

    bool operator!=(const ReleaseNotesModel& other) const {
        return !(*this == other);
    }
};


#endif // RELEASENOTESDATAMODELTYPEDEF_H
